package dd.control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

import dd.model.Event;
import dd.view.MainScreen;

public class BackToMainScreenController implements ActionListener {

	// some jframe
	private JFrame frame;

	public BackToMainScreenController(JFrame frame) {
		this.frame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		MainScreen mainScreen = new MainScreen(new Event());
		mainScreen.setVisible(true);

		this.frame.dispose();
	}

}
